<!DOCTYPE html>
<!-- 提问页 -->
<!-- @author DHC -->
<!-- 2020/04/25 -->
<html style="background: white;">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no viewport-fit=cover" />
		<script src="../../Common/js/tools.js"></script>
		<script src="../../Common/js/jump.js"></script>
		<script src="../../Common/js/lib/jquery-3.4.1.min.js"></script>
		<script src="../../Common/js/lib/materialize.min.js"></script>
		<script src="../../Common/js/lib/summernote-0.8.16-dist/summernote-lite.min.js"></script>
		<script src="../../Common/js/lib/summernote-0.8.16-dist/lang/summernote-zh-CN.min.js"></script>
		<script src="../../Common/js/summernote-fix.js"></script>
		<link rel="stylesheet" href="../../Common/css/ufun.css" />
		<link rel="stylesheet" href="../../Common/css/lib/materialize.min.css">
		<link rel="stylesheet" href="../../Common/js/lib/summernote-0.8.16-dist/summernote-lite.min.css" />
		<link rel="stylesheet" href="../../Common/css/summernote-fix.css"/>
		<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
		<style>
			.content>div{
				padding-top: 8px;
			}
		</style>
	</head>

	<body>
			<header>
				<div id="Left" class="com-btn" onclick="BackCheck(ThisBack);">
					<i class="material-icons">keyboard_arrow_left</i>
				</div>
				<div id="Title">讲座内容</div>
				<div id="Right" class="com-btn" onclick="nextPage();">下一步</div>
			</header>
			<div class="content fixed">
				<div class="note-relative">
					<textarea rows="30" type="text" placeholder="输入讲座内容" id="LecContent"></textarea>
				</div>
			</div>
		</body>
	<script>
		var current;
		var titleText;
		var introText;
		var content = $('#LecContent');
		SummerNoteInit(content, '输入讲座内容');
		document.addEventListener('plusready', function() {
			GetStatusTop();
			current = plus.webview.currentWebview();
			titleText = current.title;
			introText = current.intro;
			DoShow(current, "slide-in-right", 300);
		});
		
		content[0].onchange = function() {
			content.summernote('code', content[0].innerText);
		}
		
		function nextPage() {
			// if (!CheckLength("讲座内容", content.summernote('code'), 2147483647, 300))
			// 	return;
			OpenWebView('3.html', 'NewLec3', {}, {
				"title": titleText,
				"intro": introText,
				"content": content.summernote('code'),
			});
		}
	</script>
</html>
